package com.qiuzhiyi.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qiuzhiyi.R;
import com.qiuzhiyi.item.AddressItem;

/**
 * Author: Li
 * Date: 2017/11/23 0023
 * Description:
 */

public class AddressAdapter extends BaseQuickAdapter<AddressItem,BaseViewHolder> {
    public AddressAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, AddressItem item) {
        helper.setBackgroundRes(R.id.item_address,item.isSelected()?R.color.white:R.color.background);
    }
}
